function act_maps=get_act_map_multiTime(ExpGroup,pl)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   act_maps for multiple exps
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
act_maps={};
adata_dir = '\\argon.fmi.ch\keller.g\AData\';
for fnd=1:length(ExpGroup)
    display(['Exp: ' num2str(ExpGroup(fnd)) ' *****************************']);
    [adata_file,mouse_id,userID]=find_adata_file(ExpGroup(fnd),adata_dir);
    orig=load([adata_dir userID '\' mouse_id '\' adata_file],'act_map');
%     figure;imagesc(orig.act_map{pl})
%     colormap gray
%     drawnow
    act_maps{fnd}=orig.act_map{pl};
end

% act_maps=act_map_multiTime(ExpGroup,2);
% a=zeros(size(act_maps{1},1),size(act_maps{1},2));
% means=[];
% for tnd=1:length(act_maps)
%     a=a+act_maps{tnd};
%     means(tnd)=mean(mean(act_maps{tnd}));
%     figure;imagesc(act_maps{tnd})*84
%     colormap gray
%     set(gca,'clim',[1 8])
% end
% 
% figure;plot(means)
% xlim([0 7])

for ind=1:length(act_maps)
    aaa(:,:,ind)=act_maps{ind};
end
[s,t]=register_frames(aaa,aaa(:,:,1));
aaa=shift_data(aaa,s,t);
view_tiff_stack(aaa)

% ExpGroup=[3843;4015;4176;4285;4346;4395;4499];
% 
% ExpGroup=[3858;4033;4192;4327;4356;4402;4532];
% 
% ExpGroup=[4885;4975;5015;5031;5105;5287;5347];